﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kang.DbDoc.Models
{
    public class ViewModel : ObservableObject
    {
        private string _name;
        /// <summary>
        /// 视图名
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                SetProperty(ref _name, value);
            }
        }

        private string _comment;
        /// <summary>
        /// 视图注解
        /// </summary>
        public string Comment
        {
            get
            {
                return _comment;
            }
            set
            {
                SetProperty(ref _comment, value);
            }
        }

        /// <summary>
        /// 视图所包含的列信息
        /// </summary>
        public ObservableCollection<ColumnModel> Columns { get; set; } = new ObservableCollection<ColumnModel>();
    }
}
